
<%@page import="db_interaction.Notificacao"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.List"%>
<%@page import="db_interaction.Publicacao"%>
<%@page import="db_interaction.Utilizador"%>
<%

    if (session.isNew()) {
        response.sendRedirect("/TheHive/login/index.jsp");
    }


    Notificacao noti = new Notificacao();

    int n_notifications = noti.SelectNumberNotifications((Integer) session.getAttribute("id_user"));

%>

<head>
    <title>SocialNet</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../js/script.js"></script>
    <script type="text/javascript" src="../js/cufon-yui.js"></script>
    <script type="text/javascript" src="../js/arial.js"></script>
    <script type="text/javascript" src="../js/cuf_run.js"></script>
</head>
<body>
    <div class="main">
        <div class="main_resize">
            <div class="header">
                <div class="logo">
                    <h1><a href="/TheHive/publications/index.jsp"><span>The</span>Hive<small>Social Network</small></a></h1>
                </div>

            </div>
            <div class="menu_nav">
                <ul>
                    <li><a href="/TheHive/publications/index.jsp">Home</a></li>
                    <li><a href="/TheHive/login/MyProfile.jsp">Profile (<%= session.getAttribute("name")%>)</a></li>
                    <li><a href="/TheHive/messages/messages.jsp">Messages</a></li>
                    <li><a href="/TheHive/notifications/SeeNotifications.jsp">Notifications (<%=n_notifications%>)</a></li>
                    <li><a href="/TheHive/logout/logout.jsp">Logout</a></li>
                </ul>
            </div>
        </div>
        <div class="content">
            <div class="content_bg">